print("""
****************************************
            欢迎来到超级计算器
****************************************
              版权：CAIYI
           开发时间：2025.3.26
****************************************
""")
import math
def Csum(num1, num2):
    return num1 + num2
def Csub(num1, num2):
    return num1 - num2
def Cmulti(num1, num2):
    return num1 * num2
def CDiv(num1, num2):
    if num2 == 0:
        print("除数不能为0")
        return 0
    return num1 / num2
def Clog(num1, num2):
        return math.log(num1, num2)
flag = True
while flag:
    choice_type = input("请问:需要复数（1）还是整数（2）运算？\n")
    if choice_type == "2":
        num1 = int(input("请输入一个数: "))
        num2 = int(input("请输入另一个数: "))
        choice = input("请输入运算符(+-*/log): ")
        if choice == "+":
            print("num1 ", choice, "num2 = ", Csum(num1, num2))
        elif choice == "-":
            print("num1 ", choice, "num2 = ", Csub(num1, num2))
        elif choice == "*":
            print("num1 ", choice, "num2 = ", Cmulti(num1, num2))
        elif choice == "/":
            print("num1 ", choice, "num2 = ", CDiv(num1, num2))
        elif choice == "log":
            print("log以", num2,"为底",num1,"的对数=" , Clog(num1, num2))
        else:
            print("你输入了本王不支持的运算符哦")
            continue
    conti = int(input("是否继续？Y/N: "))
    if conti == "N":
        flag = False